package com.sishu.njrtsdms.domain.dto;

import com.sishu.njrtsdms.domain.core.Groups;

import org.jooq.types.ULong;

import java.io.Serializable;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

/**
 * 学院信息传输类
 *
 * @param collegeId   学院id
 * @param isDeleted   是否删除
 * @param collegeName 学院名称
 * @param desc        描述
 */
public record CollegeDTO(
        ULong collegeId,
        Boolean isDeleted,
        @Size(min = 1, max = 200, message = "学院最少一个字符,最多200个字符",
                groups = {Groups.Add.class, Groups.Update.class})
        @NotNull(message = "学院名称不可为空", groups = {Groups.Add.class})
        String collegeName,
        String desc
) implements Serializable {
}
